package com.dzm.thirdpart.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 作者：Dzm
 * 时间：2024-09-14-12:40
 * 功能：
 * oauth2:
 *   gitee:
 *     grant_type: authorization_code
 *     client_id: d6b82e0958bafa021a192dd8f3c1aa57d1137370a5280ae0390b7c7e514f7fdb
 *     client_secret: de9f6ca8b3a3b5f94eb9ac36874dc9f4c8f3fb9e11754fb26d6ced69de9c3c03
 *     redirect_uri: http://thirdpart.daxigua.com/gitee/callback/success
 */

@Component
@ConfigurationProperties(prefix = "oauth2.gitee")
public class GiteeProperties {
    private String grantType;
    private String clientId;
    private String clientSecret;
    private String redirectUri;

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }
}
